import request from '@/utils/request'

// 获取档案树
export function getTreesList(query) {
  return request({
    url: '/archive/trees/gettrees',
    method: 'get',
    params: query
  })
}
//点击树节点获取查询框
export function getqueryfieldList(data) {
  return request({
    url: '/archive/wjzl/getqueryfieldbytreenode',
    method: 'POST',
    data: data
  })
}
//点击树节点,获取table数据
export function getlistbytreenodeList(data) {
  return request({
    url: '/archive/wjzl/getlistbytreenode',
    method: 'POST',
    data: data
  })
}

//获取表头
export function getthbytreenodeHeaderList(data) {
  return request({
    url: '/archive/wjzl/getthbytreenode',
    method: 'POST',
    data: data
  })
}

// 获取案卡信息
export function getInfomation(query) {
  return request({
    url: '/archive/guidang/getInfo',
    method: 'get',
    params: query
  })
}

//组卷
export function zxjsMergeYqda(data) {
  return request({
    url: '/archive/zxjs/mergeYqda',
    method: 'POST',
    data: data
  })
}

// 卷著录
export function addFolderZxjs(data) {
  return request({
    url: '/archive/lxjs/addFolderZxjs',
    method: 'post',
    data: data
  })
}

// 件著录
export function addYqdaZxjs(data) {
  return request({
    url: '/archive/lxjs/addYqdaZxjs',
    method: 'post',
    data: data
  })
}

// 卷内件著录
export function addYqdaZxjs2(data) {
  return request({
    url: '/archive/lxjs/addYqdaZxjs2',
    method: 'post',
    data: data
  })
}

// 卷内件修改
export function updateYqdaZxjs(data) {
  return request({
    url: '/archive/lxjs/updateYqdaZxjs',
    method: 'post',
    data: data
  })
}

// 卷内件删除
export function deleteZxjs(data) {
  return request({
    url: '/archive/wjzl/deleteZxjs',
    method: 'delete',
    data: data
  })
}

export function fileUpload(data){
  return request({
    url: '/archive/fileUpload/oaPackage',
    method: 'post',
    data: data
  })
}

// 预归档四性检测
export function ygdDetection(data) {
  return request({
    url: '/archive/detectionObject/daDetection',
    method: 'POST',
    data: data
  })
}
